// Copyright 2019 by linx, All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
package crypt

import (
	"encoding/hex"
	"github.com/gogf/gf/crypto/gaes"
	"github.com/gogf/gf/crypto/gmd5"
)

var key = []byte(gmd5.MustEncryptBytes([]byte("iot_qjnice_com")))

func Encrypt(content string) string {
	data, _ := gaes.Encrypt([]byte(content), key)
	return hex.EncodeToString(data)
}
